package com.yao.club.entity.dto;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.Instant;

@Getter
@Setter
@Entity
@Table(name = "sys_address_province")
public class SysAddressProvince {
    @Id
    @Column(name = "province_code", nullable = false, length = 50)
    private String provinceCode;

    @Column(name = "province_name", nullable = false, length = 200)
    private String provinceName;

    @Column(name = "area_code", length = 50)
    private String areaCode;

    @Column(name = "level", nullable = false, length = 50)
    private String level;

    @Column(name = "parent_code", length = 50)
    private String parentCode;

    @Column(name = "create_time")
    private Instant createTime;

    @Column(name = "update_time")
    private Instant updateTime;

}